<?php
    /*
        $fields = model('users');
        var_dump($fields);
        $m = new GP_model;
        $langueAffichage = $m -> Users_langue_obligatoire();
        var_dump($langueAffichage);
        exit;
    */
    
    
    class GP_model 
	{
		public function __call($name, $args) 
		{
			if (isset($this -> $name) && is_callable($this -> $name))
				return call_user_func_array($this -> $name, $args);
			else
            {
                $function = strtolower(_r('get', '', $name));
                list($model, $field, $attribut) = explode('_', $function, 3);
                return attrField($model, $field, $attribut);
            }
		}
	}
?>